<form action="<?php e_page("money","index")?>" method="get">
    <fieldset>
        <legend></legend><br/>
        <label for="orderId">订单ID</label><br/>
        <input id="orderId" name="orderId" type="text" placeholder="请输入要搜索的商品ID">
        <input type="submit" value="搜索">
    </fieldset>
</form>
<?php if(!empty($r['money_info'])){?>
<table id="dataTable">
    <thead>
    <tr>
        <th>ID</th>
<!--        <th>用户手机号</th>-->
        <th>事件内容</th>
        <th>金额</th>
        <th>当前余额</th>
        <th>备注</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <?php foreach($r['money_info'] as $v){?>
        <tr>
            <td><?php echo $v['id'];?></td>
<!--            <td>--><?php //echo $v['user_id'];?><!--</td>-->
            <td><?php echo $v['event'];?></td>
            <td>￥<?php echo $v['money'];?></td>
            <td>￥<?php echo $v['total'];?></td>
            <td><?php echo $v['remark'];?></td>
            <td><a href="<?php e_page("order","detail","id={$v['order_ids']}")?>">查看订单</a></td>
        </tr>
    <?php }?>
    </tbody>
</table>
<?php
/** @var Page $page */
$page=$r['pages'];
?>
<?php echo $page->getPageHtml(); ?>
<?php }else{echo "暂无货款信息";?>
<?php }?>